home *** CD-ROM | disk | FTP | other *** search
- Path: hubcap.clemson.edu!usenet
- From: Vikas Jain <vjain>
- Newsgroups: comp.lang.c
- Subject: The msync puzzle...read on
- Date: 24 Jan 1996 11:06:17 GMT
- Organization: Clemson University
- Message-ID: <4e53r9$k44@hubcap.clemson.edu>
- NNTP-Posting-Host: em.eng.clemson.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12 (X11; I; SunOS 5.4 sun4m)
- X-URL: news:comp.lang.c
-
- Hi
-
- Can someone please tell me what exactly does msync do.
- I know that when we have shared variables an msync done after
- modifying the shared variable updates its value in the physical
- storage and optionally invalidate all other copies of the variable.
- Could someone please shed light on how it invalidates.
-
- If there are two processes eg. A & B running in parallel and sharing
- a common resource lets say `X' which BTW has been mmap(ed). If one process
- changes X and does an msync (invalidate) how does the other process get
- to know about this change. Is it informed automatically or does it too
- have to do an msync to READ the latest value of X. In case of the later,
- how do the READ and WRITE msync commands differ.
-
- Any information on the above shall be appreciated very much.
- Please, restrict your replies to email only (vjain@ces.clemson.edu).
-
- Thanks,
-
- VJ
-
-